#ifndef __TGA_IMAGE_H__
#define __TGA_IMAGE_H__
#include <stdint.h>
struct tga_image_t;
int tga_image_alloc(struct tga_image_t **tga_image);
void tga_image_free(struct tga_image_t *tga_image);
int tga_image_open(struct tga_image_t *tga_image, const char *path);
int tga_image_read(struct tga_image_t *tga_image, uint8_t *buf);
int tga_image_width(struct tga_image_t *tga_image);
int tga_image_height(struct tga_image_t *tga_image);
int tga_image_depth(struct tga_image_t *tga_image);
#endif//__TGA_IMAGE_H__

